<?php

	class Video_tags_model extends CI_Model {

		protected $__tbname = 'video_tags';
		protected $__dbconf = 'default';

		var $id;	//int(11) unsigned	Primary Key	Auto Increment	NOT NULL
		var $id_tags = 0;	//int(11) unsigned			NOT NULL
		var $id_video = 0;	//int(11) unsigned			NOT NULL

		protected $__validation_rule = array(
			'id' => array('key' => 'PRI', 'type' => 'int', 'null' => FALSE, 'auto_increment' => TRUE),
			'id_tags' => array('key' => 'MUL', 'type' => 'int', 'null' => FALSE),
			'id_video' => array('type' => 'int', 'null' => FALSE)
		);

		protected $__relation = array(
			array('table' => 'tags', 'foreign_key' => 'id_tags'),
			array('table' => 'video', 'foreign_key' => 'id_video')
		);
	}
